package com.itheima.day02_yuan;

public class Circle implements ShapePara{
    public static final double PI = 3.14;
    public int radius;

    @Override
    public int getArea() {
        int area = (int) (PI * radius * radius);
        return area;
    }

    @Override
    public int getCircumference() {
        int circumference = (int) (2 * PI * radius);
        return circumference;
    }

    public Circle() {
    }
    public Circle(int radius) {
        this.radius = radius;
    }
    public int getRadius() {
        return radius;
    }
    public void setRadius(int radius) {
        this.radius = radius;
    }
}
